package cn.com.api.service.impl;
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiT_order_return;
import cn.com.api.mapper.ApiT_order_returnMapper;
import cn.com.api.service.ApiT_order_returnService;
import cn.com.api.service.impl.base.T_order_returnServiceImplBase;
import cn.com.util.PageInfo;

/**
 * 
 **/
@Service
public class ApiT_order_returnServiceImpl extends T_order_returnServiceImplBase implements ApiT_order_returnService{
	@Autowired
	private ApiT_order_returnMapper apiT_order_returnMapper;
    
	
     	//新增对象后返回记录ID
    public int T_order_returnInsertion(ApiT_order_return t_order_return){
        return this.apiT_order_returnMapper.T_order_returnInsertion(t_order_return);
    }


	@Override
	public void updateStatusById(String id, String status) {
		// TODO Auto-generated method stub
		 apiT_order_returnMapper.updateStatusById(id, status);
	}


	@Override
	public void updateMoneyById(String orderNum, BigDecimal money) {
		// TODO Auto-generated method stub
		apiT_order_returnMapper.updateMoneyById(orderNum, money);
	}


	@Override
	public void updateDisReasonById(String id, String disReason) {

		apiT_order_returnMapper.updateDisReasonById(id, disReason);
	}


	@Override
	public List<ApiT_order_return> findOrderReturnsListPage(
			@Param("cond")Map<String, Object> cond,
			@Param("page")PageInfo page) {
		// TODO Auto-generated method stub
	return	apiT_order_returnMapper.findOrderReturnsListPage(cond,page);
		
	}
 
}


